/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-07-03 13:48:30
 * @LastEditTime: 2019-12-15 20:36:35
 * @LastEditors: LLP
 */
import Vue from 'vue'
import Router from 'vue-router'
import Details from '@/views/userDetails/index.vue'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  // base: process.env.BASE_URL,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/home/index.vue'),
    },
    {
      path: '/',
      component: Details,
      redirect: '/wallet',
      children: [{
        path: '/wallet',
        meta: { title: 'WALLET' },
        component: () => import('@/views/userDetails/wallet/index.vue'),
      }, {
        path: '/anteque',
        meta: { title: 'WALLET' },
        component: () => import('@/views/userDetails/wallet/anteque.vue')
      }, {
        path: '/tether',
        meta: { title: 'WALLET' },
        component: () => import('@/views/userDetails/wallet/tether.vue')
      }, {
        path: '/account',
        meta: { title: 'ACCOUNT SECURITY' },
        component: () => import('@/views/userDetails/account/index.vue'),
      }, {
        path: '/kyc',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/index.vue'),
      }, {
        path: '/emailver',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/emailVer.vue')
      },{
        path: '/phonever',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/phoneVer.vue')
      }, {
        path: '/changeEmail',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/changeEmailVer.vue')
      }, {
        path: '/changeLogin',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/changeLogin.vue')
      }, {
        path: '/changePhone',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/changePhone.vue')
      }, {
        path: '/fundPassword',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/fundPassword.vue')
      },
      {
        path: '/changeFund',
        meta: { title: 'KYC VERIFICATION' },
        component: () => import('@/views/userDetails/kycVerification/changeFund.vue')
      }, {
        path: '/system',
        meta: { title: 'SYSTEM SETTING' },
        component: () => import('@/views/userDetails/systemSetting/index.vue')
      }]
    }
  ]
})
